home *** CD-ROM | disk | FTP | other *** search
/ The Trig Explorer / The Trig Explorer.iso / mac / Explorer / APPS_ANG.dxr / 00063.ls < prev    next >
Encoding:
Text File  |  1998-07-22  |  414 b   |  15 lines

  1. on exitFrame
  2.   set the trails of sprite 5 to 1
  3.   set x0 to the locH of sprite 3
  4.   set y0 to the locV of sprite 3
  5.   repeat with n = 0 to 720
  6.     set n1 to float(n / 2.0)
  7.     set r to tan(4.0 * n1 * PI / 180.0)
  8.     set y to 150.0 * r * sin(n1 * PI / 180.0)
  9.     set x to 150.0 * r * cos(n1 * PI / 180.0)
  10.     set the locH of sprite 5 to x0 + x
  11.     set the locV of sprite 5 to y0 - y
  12.     updateStage()
  13.   end repeat
  14. end
  15.